#ifndef PHRENWORKER_H
#define PHRENWORKER_H

#include <QObject>
#include <QThread>

class phRenWorker : public QObject
{
    Q_OBJECT
public:
    explicit phRenWorker(QObject *parent = nullptr);
    ~phRenWorker();

signals:
    void rename(QString folder);
    void msgout(QString str);

public slots:
    void doRename(QString path);

private:
    bool _rename(QString path, QString name);

private:
    QThread thd;
};

#endif // PHRENWORKER_H
